package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data //生成get set hashcode toString
@AllArgsConstructor //全参数构造
@NoArgsConstructor //无参构造
@Table(name = "t_search_master_msg")
@Api("对象")
public class SearchMasterMsg extends BaseDomain {
    //名字
    private String name;
    //价格
    private Double price;
    //年龄
    private String age;
    //性别
    private Integer gender;
    //颜色
    private String coatColor;
    //图片地址
    private String resources;
    //宠物类型
    @NotNull(message = "类型不能为空")
    private Long petType;
    //标题
    private String title;
    //状态  0:待审核  1:已审核 -1:驳回
    private Integer state = 0;
    //地址
    private String address;
    //用户id
    private Long userId;
    //店铺id
    private Long shopId;

    //宠物类型名称
    @Transient
    private String petTypeName;
    //摘要
    private String note;

    @Transient
    private Long empId;
}
